package cn.haixiang.org.domain;


import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department {
   private Long id;
   private String sn;
   private String name;
   private String dirPath;
   private Long state;
   private Long managerId;
   private Long parentId;
   private Long shopId;
   /*這個是部門的經理由員工表拿取*/
   private Employee manager;

   private Department parent;

   //这个是放到子部门的返回的是list的集合
   @JsonInclude(JsonInclude.Include.NON_EMPTY)//填写字段空的时候不返回
   private List<Department> children = new ArrayList<>();

//   private List<Department> Employee;

}
